.sales-page {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #f8f8f8;
  overflow: hidden;
  .sales-total {
    width: 100%;
    height: 277px;
    background: linear-gradient(to right, #8dc456, #006251);
    .company {
      height: 50%;
      display: flex;
      position: relative;
      align-items: flex-end;
      justify-content: center;
      text-align: center;
      color: #fff;
      .addr {
        opacity: 0.5;
      }
      .instants {
        position: absolute;
        right: 26px;
        bottom: 26px;
        font-size: 26px;

        .picker {
          font-size: 26px !important;
        }
      }
    }
    .sales-info {
      height: 50%;
      color: #fff;
      display: flex;
      align-items: center;
      .info-item {
        flex: 1;
        text-align: center;
        .label {
          opacity: 0.79;
        }
      }
    }
  }
}

.sales-header {
  width: 100%;
  height: 80px;
  line-height: 80px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  display: flex;
  align-items: center;

  .header-nav {
    flex: 1;
    height: 100%;
    color: #333333;
    text-align: center;
    position: relative;
  }
  .active {
    color: #006251;
    &::before {
      content: '';
      width: 30%;
      height: 6px;
      position: absolute;
      bottom: 0;
      left: 50%;
      border-radius: 6px;
      background: linear-gradient(to right, #8dc456, #006251);
      transform: translateX(-50%);
    }
  }
}

.sales-box {
  width: 100%;
  height: calc(100vh - 357px);
  overflow: hidden;

  .sales-info {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
  }
}

.card-goods {
  display: flex;
  padding: 0 18px;
  padding-top: 18px;
  .goods-img {
    width: 126px;
    height: 126px;
    margin-right: 18px;
    border-radius: 8px;
  }
  .goods-info {
    flex: 1;
    color: #aaaba9;
    font-size: 26px;
    .title {
      color: #01110e;
    }
    .info {
      padding: 4px 0;
    }
  }
  .total {
    font-size: 26px;
    text-align: right;
    color: #535353;
    .price {
      color: #01110e;
    }
  }
}

.search-box {
  width: 80%;
  height: 70px;
  line-height: 70px;
  margin: 16px auto;
  background: #ffffff;
  border-radius: 35px;
  overflow: hidden;
  font-size: 28px;
  color: #aaaba9;
  padding-left: 78px;
  position: relative;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 78px;
    height: 100%;
    background-image: url('../../assets/search.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40%;
  }
}

.search-page {
  width: 100vw;
  padding: 22px;
  overflow: hidden;
  background-color: #f8f8f8;

  .input-bar {
    display: flex;
    align-items: center;

    .input {
      width: 80%;
      height: 70px;
      background: #ffffff;
      border-radius: 35px;
      overflow: hidden;
      font-size: 28px;
      color: #01110e;
      padding-left: 78px;
      position: relative;

      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 78px;
        height: 100%;
        background-image: url('../../assets/search.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 40%;
      }
    }

    .input-placeholder {
      font-size: 26px;
    }

    .btn {
      width: 20%;
      font-size: 28px;
      color: #666666;
      padding-left: 27px;
    }
  }
}

// SalesDataList

.card-bar {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 22px;
  background-color: #fff;
  font-size: 28px;
  padding: 14px 0;
  padding-bottom: 21px;
  overflow: hidden;
}

.card-bar {
  .card-title {
    padding: 0 20px;
    margin-bottom: 3px;
    font-size: 28px;
    display: flex;
    align-items: center;
    .time {
      color: #535353;
      padding: 3px 14px;
      background: #f8f8f8;
      border-radius: 4px;
    }
    .total {
      flex: 1;
      text-align: right;
      color: #535353;
      .value {
        padding-left: 10px;
        &:not(:last-child) {
          margin-right: 20px;
        }
      }
    }
  }
}

// sales -goods

.product-card {
  margin: 0 12px;
  margin-top: 16px;
  padding: 0 19px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0.2em 0.5em rgba(255, 255, 255, 0.2);

  .product-company {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
  }
}
.product-company {
  .company-img {
    width: 42px;
    height: 42px;
    margin: 17px 7px;
    border-radius: 50%;
  }
  .company-name {
    margin-left: 13px;
    color: #535353;
    flex: 1;
  }
}

.product-goods {
  .product-info {
    display: flex;
    align-items: center;
    .goods-img {
      width: 110px;
      height: 110px;
      margin: 18px 7px;
      border-radius: 8px;
      // box-shadow: 0px 0.5em 1em rgba(0, 0, 0, 0.2);
    }
    .goods-info {
      margin: 9px 11px;
    }
  }

  .goods-spec {
    width: calc(100% - 135px);
    margin-left: auto;
    .spec-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #535353;
      padding: 15px 0;
      .label {
        color: #01110e;
      }
      .value {
        padding-right: 11px;
      }
    }
  }
}

.goods-info {
  .info {
    font-size: 26px;
    color: #aaaba9;
    padding: 1px 0;
    &:first-child {
      font-size: 30px;
      color: #01110e;
    }
  }
}
